package com.leadingsoft.pwxk.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import com.alibaba.fastjson.annotation.JSONField;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author ysh
 * @desc 获取发证后-许可证发证信息
 */
@Entity
@Data
@EqualsAndHashCode(callSuper=false)
public class LicenseInfo extends Basic {

	private static final long serialVersionUID = 1L;
//	@JSONField(name = "dataid")
//	private String dataId;// 数据主键，此字段非常重要，使用此字段查询表单的具体内容
	@JSONField(name = "fzdept")
	private String fzDept;// 发证机关
	@JSONField(name = "fzTime")
	private String fztime;// 发证日期
	private String times; // 许可证有效期限
	@JSONField(name = "xkznum")
	private String xkzNum;// 许可证编码
	@JSONField(name = "xkzfmnum")
	private String xkzfmNum;// 许可证副码

	@JSONField(name = "fqpfklist")
	@OneToMany(cascade=CascadeType.ALL)
	private List<LicenseRelatedCode> fqpfkList;
	@JSONField(name = "fqwrzlsslist")
	@OneToMany(cascade=CascadeType.ALL)
	private List<LicenseRelatedCode> fqwrzlssList;
	@JSONField(name = "fspfklist")
	@OneToMany(cascade=CascadeType.ALL)
	private List<LicenseRelatedCode> fspfkList;
	@JSONField(name = "fswrzlsslist")
	@OneToMany(cascade=CascadeType.ALL)
	private List<LicenseRelatedCode> fswrzlssList;
	@JSONField(name = "scsslistlist")
	@OneToMany(cascade=CascadeType.ALL)
	private List<LicenseRelatedCode> scsslistList;
	@JSONField(name = "wzzlist")
	@OneToMany(cascade=CascadeType.ALL)
	private List<LicenseRelatedCode> wzzList;
	@JSONField(name = "sczzlist")
	@OneToMany(cascade=CascadeType.ALL)
	private List<LicenseRelatedCode> sczzList;
}
